Important: Jenkins and Jenkins-2-plugins security update

Synopsis

Important: Jenkins and Jenkins-2-plugins security update

Type/Severity

Security Advisory: Important

Red Hat Insights patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

An update for Jenkins and Jenkins-2-plugins is now available for OpenShift Developer Tools and Services for OCP 4.12.

Red Hat Product Security has rated this update as having a security impact of Critical. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.

Description

Jenkins is a continuous integration server that monitors executions of repeated jobs, such as building a software project or jobs run by cron.

Security Fix(es):

  • apache-commons-text: variable interpolation RCE (CVE-2022-42889)
  • google-oauth-client: missing PKCE support in accordance with the RFC for OAuth 2.0 for Native Apps can lead to improper authorization (CVE-2020-7692)
  • maven: Block repositories using http by default (CVE-2021-26291)
  • snakeyaml: Denial of Service due to missing nested depth limitation for collections (CVE-2022-25857)
  • maven-shared-utils: Command injection via Commandline class (CVE-2022-29599)
  • jenkins-2-plugins/script-security: Sandbox bypass vulnerability in Script Security Plugin (CVE-2023-24422)
  • jenkins: Arbitrary file read vulnerability through the CLI can lead to RCE (CVE-2024-23897)
  • jenkins: cross-site WebSocket hijacking (CVE-2024-23898)
  • golang: go/parser: stack exhaustion in all Parse* functions (CVE-2022-1962)
  • guava: insecure temporary directory creation (CVE-2023-2976)
  • springframework: Spring Expression DoS Vulnerability (CVE-2023-20861)
  • spring-security: Empty SecurityContext Is Not Properly Saved Upon Logout (CVE-2023-20862)
  • jenkins-2-plugins/JUnit: Stored XSS vulnerability in JUnit Plugin (CVE-2023-25761)
  • jenkins-2-plugins/pipeline-build-step: Stored XSS vulnerability in Pipeline: Build Step Plugin (CVE-2023-25762)
  • jetty-server: OutOfMemoryError for large multipart without filename read via request.getParameter() (CVE-2023-26048)
  • jetty-server: Cookie parsing of quoted values can exfiltrate values from other cookies (CVE-2023-26049)
  • Jenkins: Open redirect vulnerability in OpenShift Login Plugin (CVE-2023-37947)
  • jetty: Improper validation of HTTP/1 content-length (CVE-2023-40167)
  • jenkins-plugins: cloudbees-folder: CSRF vulnerability in Folders Plugin (CVE-2023-40337)
  • jenkins-plugins: cloudbees-folder: Information disclosure in Folders Plugin (CVE-2023-40338)
  • jenkins-plugins: config-file-provider: Improper masking of credentials in Config File Provider Plugin (CVE-2023-40339)
  • jenkins-plugins: blueocean: CSRF vulnerability in Blue Ocean Plugin allows capturing credentials (CVE-2023-40341)
  • Jenkins: Temporary file parameter created with insecure permissions (CVE-2023-27903)
  • Jenkins: Information disclosure through error stack traces related to agents (CVE-2023-27904)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Solution

For details on how to apply this update, which includes the changes described in this advisory, refer to:

https://access.redhat.com/articles/11258

Affected Products

  • OpenShift Developer Tools and Services 4.12 x86_64
  • OpenShift Developer Tools and Services 4.12 s390x
  • OpenShift Developer Tools and Services 4.12 ppc64le
  • OpenShift Developer Tools and Services 4.12 aarch64

Fixes

  • BZ - 1856376 - CVE-2020-7692 google-oauth-client: missing PKCE support in accordance with the RFC for OAuth 2.0 for Native Apps can lead to improper authorization
  • BZ - 1955739 - CVE-2021-26291 maven: Block repositories using http by default
  • BZ - 2066479 - CVE-2022-29599 maven-shared-utils: Command injection via Commandline class
  • BZ - 2107376 - CVE-2022-1962 golang: go/parser: stack exhaustion in all Parse* functions
  • BZ - 2126789 - CVE-2022-25857 snakeyaml: Denial of Service due to missing nested depth limitation for collections
  • BZ - 2135435 - CVE-2022-42889 apache-commons-text: variable interpolation RCE
  • BZ - 2164278 - CVE-2023-24422 jenkins-2-plugins/script-security: Sandbox bypass vulnerability in Script Security Plugin
  • BZ - 2170039 - CVE-2023-25761 jenkins-2-plugins/JUnit: Stored XSS vulnerability in JUnit Plugin
  • BZ - 2170041 - CVE-2023-25762 jenkins-2-plugins/pipeline-build-step: Stored XSS vulnerability in Pipeline: Build Step Plugin
  • BZ - 2177632 - CVE-2023-27903 Jenkins: Temporary file parameter created with insecure permissions
  • BZ - 2177634 - CVE-2023-27904 Jenkins: Information disclosure through error stack traces related to agents
  • BZ - 2180530 - CVE-2023-20861 springframework: Spring Expression DoS Vulnerability
  • BZ - 2215229 - CVE-2023-2976 guava: insecure temporary directory creation
  • BZ - 2222710 - CVE-2023-37947 Jenkins: Open redirect vulnerability in OpenShift Login Plugin
  • BZ - 2227788 - CVE-2023-20862 spring-security: Empty SecurityContext Is Not Properly Saved Upon Logout
  • BZ - 2232422 - CVE-2023-40341 jenkins-plugins: blueocean: CSRF vulnerability in Blue Ocean Plugin allows capturing credentials
  • BZ - 2232423 - CVE-2023-40339 jenkins-plugins: config-file-provider: Improper masking of credentials in Config File Provider Plugin
  • BZ - 2232425 - CVE-2023-40337 jenkins-plugins: cloudbees-folder: CSRF vulnerability in Folders Plugin
  • BZ - 2232426 - CVE-2023-40338 jenkins-plugins: cloudbees-folder: Information disclosure in Folders Plugin
  • BZ - 2236340 - CVE-2023-26048 jetty-server: OutOfMemoryError for large multipart without filename read via request.getParameter()
  • BZ - 2236341 - CVE-2023-26049 jetty-server: Cookie parsing of quoted values can exfiltrate values from other cookies
  • BZ - 2239634 - CVE-2023-40167 jetty: Improper validation of HTTP/1 content-length
  • BZ - 2260180 - CVE-2024-23897 jenkins: Arbitrary file read vulnerability through the CLI can lead to RCE
  • BZ - 2260182 - CVE-2024-23898 jenkins: cross-site WebSocket hijacking
  • JKNS-271 - Automate Polarion integration for smoke test
  • JKNS-289 - Draft Knowledgebase article for Jenkins out of payload
  • OCPBUGS-10976 - Bump Jenkins to 2.387.1
  • OCPBUGS-11158 - Mailer Plugin (mailer) has breaking changes in newest version
  • OCPBUGS-11348 - Mailer Plugin (mailer) has breaking changes in newest version
  • OCPBUGS-1357 - Jenkins install-plugins script does not ignore updates to locked plugin versions
  • OCPBUGS-13652 - [release-4.12] Bump Jenkins and Plugin versions
  • OCPBUGS-13901 - [release-4.12] Bump Jenkins Plugins to latest version
  • OCPBUGS-14113 - Update ImageStreams to use new Jenkins and Jenkins Agent Base images
  • OCPBUGS-14393 - Bump Jenkins Plugins to latest version
  • OCPBUGS-14642 - Bump Jenkins plugins to latest versions
  • OCPBUGS-15648 - [release-4.12] Update ImageStreams to use new Jenkins and Jenkins Agent Base images
  • OCPBUGS-1709 - Align javax-mail-api with Jenkins Server 2.361.1
  • OCPBUGS-1942 - Bump Jenkins version to 2.361.1
  • OCPBUGS-2099 - Fix sshd embedded version
  • OCPBUGS-2184 - Update jenkins-client, jenkins-sync and openshift-login plugin to latest versions
  • OCPBUGS-2318 - Release and update client, sync and login plugins
  • OCPBUGS-27391 - release-4.12 - Bump Jenkins Plugin Versions and Go Dependencies
  • OCPBUGS-3692 - [release-4.12] Update OWNERS file to reflect current team members
  • OCPBUGS-4819 - openshift4/ose-jenkins:v4.10.0 run script throws too many arguments error
  • OCPBUGS-4833 - [release-4.12] openshift4/ose-jenkins:v4.10.0 run script throws too many arguments error
  • OCPBUGS-655 - Update blueocean-autofavorite to 1.2.5
  • OCPBUGS-6632 - update sample imagestreams with latest 4.11 image
  • OCPBUGS-6982 - Bump Jenkins to 2.361.4
  • OCPBUGS-7016 - Sync with master branch
  • OCPBUGS-7050 - Sync jenkins-version.txt, base-plugins.txt and bundle-plugins.txt from master branch
  • OCPBUGS-710 - Add user coreydaley to list of approvers for openshift/jenkins
  • OCPBUGS-8420 - Update Go to v1.18
  • OCPBUGS-8497 - Jenkins images based on rhel8 are wrongly tagged with rhel7
  • OCPTOOLS-246 - Bump Jenkins version to 2.414.3 [openshift-4.12]